home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 15 Mar 1996 18:04:27 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4id7jbINN9jk@keats.ugrad.cs.ubc.ca>
- References: <00001a73+00002504@msn.com> <4i9ld6$m2v@rational.rational.com> <4iah20$p7k@saba.info.ucla.edu> <4ictel$18v@tpd.dsccc.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4ictel$18v@tpd.dsccc.com>,
- Kevin Cline <kcline@sun132.spd.dsccc.com> wrote:
- >>Heh, I have seen people using Lex and Yacc to build parsers to read
- >>in simple tables.
- >>Like swatting a bug with a sledge hammer (they ever heard of "scanf"?)
- >
- >Maybe, but I personally find it much easier to maintain lex & yacc
- >grammers which make the file syntax explicit, instead of trying to
- >divine the syntax from scanf statements scattered throughout a dozen
- >subroutines.
- >
- >Lex and yacc are so useful that the DoD paid some good folks at
- >U Cal Irvine to convert flex and bison (the GNU versions of lex and yacc)
- >from C to Ada. I used them, they worked well, and saved me much
- >aggravation trying to do the same thing at the Ada Standard I/O level.
- >
- >The scanf programmers tend to define their input file syntax to make
- >it easy to parse, rather than easy to read, and then resist all
- >suggestions to extend the syntax for user convenience.
-
- There you go. You said what I was trying to say in a better manner.
-
- The Ada flex and bison sound cool!
-
- >>By the way after 10+ years of using Unix I am
- >>having trouble thinking of a standard Unix utility that is not a
- >>total misdesigned piece of crap! Maybe someone can help me.
- >
- >I agree. They are all horrible. The only thing worse is working on
- >systems like VAX/VMS or MS/DOS which have no utilities at all.
-
- Touche!
- --
-
-